<!--
 * @Author: 杜二康 3224811364@qq.com
 * @Date: 2025-09-04 11:24:01
 * @LastEditors: 杜二康 3224811364@qq.com
 * @LastEditTime: 2025-09-04 11:27:58
 * @FilePath: \igw\components\label.vue
 * @Description: 
 * 
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved. 
-->
<script setup>
import { Label } from "radix-vue";
import { cn } from "../utils";

const props = defineProps({
  class: { type: String, required: false, default: "" },
});
</script>

<template>
  <Label
    :class="
      cn(
        'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
        props.class
      )
    "
    v-bind="$attrs"
  >
    <slot />
  </Label>
</template>
